/*
 * Created on 23 janv. 2007
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package cb.view;

import gameFramework.model.entites.Entity;
import gameFramework.view.GEntity;

import java.awt.Color;
import java.awt.Graphics2D;

/**
 * @author Thomas Hoarau
 *
 */
public class GCbBrick extends GEntity{

	/**
	 * @param model
	 */
	public GCbBrick(Entity model) {
		super(model);
	}

	/* (non-Javadoc)
	 * @see view.GEntity#draw(java.awt.Graphics2D)
	 */
	public void draw(Graphics2D g2d) {
		g2d.setColor(Color.RED);
		g2d.fillRoundRect(model.getPosition().x, model.getPosition().y,
				this.model.getSize().width, this.model.getSize().height, 2, 2);
	}
}
